<?php

namespace app\admin\model\scanwork;

use think\Model;

class Stockinventory extends Model
{
    protected $name = 'scanwork_stock_inventory';
    protected $autoWriteTimestamp = 'int';
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';

    public function warehouse()
    {
        return $this->belongsTo('Warehouse', 'warehouse_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }

    public function creator()
    {
        return $this->belongsTo('app\admin\model\Admin', 'creator_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }
}

